
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <chrono>
#include <string.h>
#include "src/aiwendb.h"
#include "awdb.hpp"

using namespace std;

int main()
{
	string awdb_filename = "test.awdb";
	awdb::Data db(awdb_filename);
	string ip = "211.112.21.0";
//    string ip = "2001:0200:0000:6805:ffff:ffff:ffff:ffff";
//    std::cout << "待查询IP: " << ip << std::endl;
	int stat = db.locate(ip);
	return 0;
}

